<?php  
  $link = $data->getObjectLink();
  $resources = GxcHelpers::getResourceObjectFromDatabase($data,'image');
  $resource = null;
  if (isset($resources)) {
  	$resource = $resources[0];
  }
?>
<div class="span35 margcenter">	
  	<div class="thumbnail">
  		<img src="<?php echo $resource['link']; ?>">
  		<div class="caption">
  			<h5><?php echo $data->object_name;?></h5>
  				<p>Comment the collection overview here</p>
  				<a class="btn btn-primary" href="<?php echo $link;?>">View</a>
  		</div>
  	</div>
</div>